package com.rank.ccms.profile.dao.impl;

import com.rank.ccms.profile.dao.ProfileDAO;
import com.rank.ccms.profile.model.Profile;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import java.util.List;

/**
 * Created by gbpiqba on 12/30/13.
 */
public class ProfileDAOImpl extends HibernateDaoSupport implements ProfileDAO{

    @Override
    public void save(Profile profile) {
        getHibernateTemplate().save(profile);
    }

    @Override
    public Profile findById(Long id) {
        List<Profile> profiles=  getHibernateTemplate().find("from Profile where id="+id);
        return null;
    }

    @Override
    public List<Profile> findAll() {
        return null;
    }

    @Override
    public void delete(Profile profile) {

    }

    @Override
    public void deleteAll(List<Profile> profiles) {

    }
}
